//按递增顺序依次列出所有分母为40，分子小于40的最简分数。`

#include <stdio.h>
int main (int argc, char *argv[])
{
  int isSimple(int Num);
  for (int i = 1; i < 40; i++) {
    if (isSimple(i)){
      printf("%d/40,", i);
    }
  }
  return 0;
}

int isSimple(int Num)
{
  int IsS = 0;
  // 40 Factors is 2, 5
  if (Num%2 != 0 && Num%5 != 0) {
    IsS =1;
  }
  return IsS;
}
